home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 6_17.lha / 6_17 / 6_17a26.c < prev    next >
C/C++ Source or Header  |  1993-08-08  |  293b  |  14 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / x -= y
  6. ector& vector::operator-=(float x)
  7.  
  8.    int l = p->length;
  9.    float *f = p->f;
  10.    for (int i = 0; i < l; i++, f++)
  11. *f -= x;
  12.    return *this;
  13.  
  14.